from django.db import models

class Country(models.Model):
    Name = models.CharField(max_length=200)

class Hotel(models.Model):
    Name = models.CharField(max_length=200)
    Type = models.CharField(max_length=200)
    open_date = models.DateTimeField('date published')    
    Country = models.ForeignKey(Country)
    City = models.CharField(max_length=200)
    Description = models.TextField()

    def __str__(self):
        return self.headline

    class Meta:
        db_table = 'volia_hotel'

    def get_by_id(self, id):
        return ''	    

class Room(models.Model):
    Name = models.CharField(max_length=200)
    Type = models.CharField(max_length=200)
    open_date = models.DateTimeField('date published')    
    Description = models.CharField(max_length=2000)
    
class User(models.Model):
    Login = models.CharField(max_length=200)
    E_mail= models.EmailField()
    Name  = models.CharField(max_length=200)  